<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class RoleFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        $roleArr = [
            '老师',
            '医生',
            '程序员',
            '农民',
            '泥瓦匠',
            '木工',
            '护士',
            '环卫工',
            '会计',
            '商人',
            '司机',
        ];

        return [
            'name' => $this->faker->randomElement($roleArr),
        ];
    }
}
